package com.java.wmovie.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
public class RankingController {

    @RequestMapping("/ranking")
    public String ranking(Model model, HttpSession session){
        String name= (String) session.getAttribute("loginUser");
        model.addAttribute("name",name);
        return "/ranking";
    }
}
